var PlayMusic = Music.extend({
	bg_flag:false,
	ctor:function(){
		this.bg_flag = false;
		this.effFlag = false;
	},
	clever:function(){
		this.playEffect(res_play.ok);
		gg.score+=10;
	},
	error:function(){
		this.playEffect(res_play.error);
		gg.score-=3;
		if(gg.score<0){
			gg.score=0;
		}
	},
//	playBg:function(){
//		this.playMusic(res_play.home);
//	},
	cPause:function(){
		this.effFlag = false;
		this.pause();
	},
	cResume:function(){
		this.effFlag = true;
		if(!this.bg_flag){
			this.bg_flag = true;
//			this.playBg();
		} else {
			this.resume();			
		}
	},
	isStop:function(){
		return !this.effFlag;
	},
	clock:function(){
		this.playEffect(res_play.clock, true);
	},
	stopClock:function(){
		cc.audioEngine.stopAllEffects();
	},
	over:function(){
//		this.playEffect(res_play.over, true);
	}
});